//
//  VideoChatLogic.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/6/20.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "VideoChatLogic.h"

@implementation VideoChatLogic

-(void)loadData
{
    NSString *url = [[CYURLUtils sharedCYURLUtils] makeURLWithC:@"page_data_api" A:@"request_get_video_chat_page_data"];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    
    [CYNET POSTv3:url parameters:param responseCache:^(id responseObject) {
        
        if (self.delegagte && [self.delegagte respondsToSelector:@selector(requestSlideDataCompletedWithData:)]) {
            
            [self.delegagte requestSlideDataCompletedWithData:[responseObject valueForKey:@"slide"]];
        }
        
    } success:^(id responseObject) {
        if (self.delegagte && [self.delegagte respondsToSelector:@selector(requestSlideDataCompletedWithData:)]) {
            
            [self.delegagte requestSlideDataCompletedWithData:[responseObject valueForKey:@"slide"]];
        }
    } failure:^(NSString *error, NSInteger code) {
        
    } hasCache:YES];
    

}

@end
